package week4.num.ExceptionDemo01.neueduTotal.solar;

public class Sun extends AbstrectSolarObject{

    public Sun(){}

    public Sun(int x,int y,String key){
        this(key);
        this.x=x;
        this.y=y;
    }
    public Sun(String key){
        this.img=imageUtil.imgMap.get(key);
        this.width=img.getWidth(null);
        this.height=img.getHeight(null);
        this.x=Constant.WINDOw_WIDTH/2-this.width/2;
        this.y=Constant.WINDOw_HEIGHT/2-this.height/2;
    }
}
